home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UArticleManageView.h < prev    next >
Encoding:
Text File  |  1994-03-06  |  1.2 KB  |  42 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UArticleManageView.h
  3.  
  4. #define __UARTICLEMANAGEVIEW__
  5.  
  6. class TArticleView;
  7. class TGroupDoc;
  8. class TArticle;
  9. class TTriangleControl;
  10.  
  11. #ifndef __FONTTOOLS__
  12. #include "FontTools.h"
  13. #endif
  14.  
  15. class TArticleManageView : public TView
  16. {
  17.     public:
  18.         pascal void DoEvent(EventNumber eventNumber, TEventHandler* source, TEvent* event);
  19.         pascal void Draw(const VRect& area);
  20.         pascal void SubViewChangedFrame(TView* theSubView,
  21.                                             const VRect& oldFrame, const VRect& newFrame, Boolean invalidate);
  22.  
  23.         TArticleView *GetArticleView(); // can be nil
  24.         void SetNewFont(const TextStyle &textStyle);
  25.         void BuildDisplay(Boolean expand, TArticle *article = nil);
  26.         
  27.         pascal void Initialize();
  28.         void IArticleManageView(TGroupDoc *doc, TView *superView, VCoordinate top,
  29.                                             long articleID, TArticle *article, Boolean showExpanded);
  30.         pascal void Free();
  31.     private:
  32.         TGroupDoc *fDoc;
  33.         long fArticleID;
  34.         TArticleView *fArticleView;
  35.         TTriangleControl *fTriControl;
  36.         Boolean fIsExpanded;
  37.         StandardGridViewTextStyle fGridViewTextStyle;
  38.  
  39.         void DoShowArticleView(TArticle *article);
  40.         void DoShowHeaderView();
  41. };
  42.